package com.yangmf.auto_message_handle;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//后续可以在配置类里面配置
@ConfigurationPropertiesScan("com.yangmf.auto_message_handle.properties")
//启动定时任务
@EnableScheduling
//缓存注解
@EnableCaching
@MapperScan("com.yangmf.auto_message_handle.mapper")

public class AutoMessageHandleApplication {

    public static void main(String[] args) {
        SpringApplication.run(AutoMessageHandleApplication.class, args);
    }

}
